package com.yidiandao.business.ui.main.usercenter;

import com.yidiandao.business.base.BasePresenter;
import com.yidiandao.business.base.BaseView;
import com.yidiandao.business.data.bean.ShareEntity;
import com.yidiandao.business.data.bean.User;
import com.yidiandao.business.data.event.RefreshUserCenterPointEvent;

import io.realm.Realm;

/** 我的 */
public class UserCenterContract {

    interface Presenter extends BasePresenter {

        void getUserInfo();

        void destroy();

        boolean hasNewAgentPushMessage();

        void setHasNewAgentPushMessage(boolean hasNewAgentMessage);

        ShareEntity getShareData();

        void setHasNewOfferMessage(boolean hasNewOfferMessage);

        boolean hasNewOfferMessage();
    }

    interface View extends BaseView<Presenter> {

        void setNewOfferMessageVisibility(boolean visibility);

        void setNewAgentPushVisibility(boolean visibility);

        void setBrowsingHistoryNum(int num);

        Realm getRealm();

        void onEventMainThread(RefreshUserCenterPointEvent event);

        void showDialog();

        void disMissDialog();

        void setUserInfo(User user);

        void refreshTotalUnReadMessage(int totalUnReadMessageCount);
    }
}
